﻿using System;
using System.Collections.Generic;
using System.Linq;
using SinBiota.Model.Business.StatisticsServices.Interfaces;
using SinBiota.Model.Entities;
using SinBiota.Model.Persistence.ComplexQueries.Interfaces;

namespace SinBiota.Model.Business.StatisticsServices.Implementation
{
    public class SpeciesStatistics : ISpeciesStatistics
    {
        private readonly IRepositoryStatistics _repositoryStatistics;

        public SpeciesStatistics(IRepositoryStatistics repositoryStatistics)
        {
            _repositoryStatistics = repositoryStatistics;
        }

        public int TotalSpecies()
        {
            return _repositoryStatistics.TotalofEntity<Specimen>();
        }

    }
}